<?php

require_once dirname(__FILE__).'/../lib/solutionGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/solutionGeneratorHelper.class.php';

/**
 * solution actions.
 *
 * @package    lezgro
 * @subpackage solution
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class solutionActions extends autoSolutionActions
{
  public function executeShowSolutionsList(sfWebRequest $request){
      $solution=$this->getRoute()->getObject();
      sfContext::getInstance()->getConfiguration()->loadHelpers('Url');
      $this->redirect(url_for(array('module'=>'portfolio','action'=>'index','solution_id'=>$solution->getId())));
  }
  public function executeShowReviewsList(sfWebRequest $request){
      $solution=$this->getRoute()->getObject();
      sfContext::getInstance()->getConfiguration()->loadHelpers('Url');
      $this->redirect(url_for(array('module'=>'review','action'=>'index','solution_id'=>$solution->getId())));
  }
  public function executeCreateMainReview(sfWebRequest $request){
      $solution=$this->getRoute()->getObject();
      sfContext::getInstance()->getConfiguration()->loadHelpers('Url');
      $this->redirect(url_for(array('module'=>'review','action'=>'createMainReview','solution_id'=>$solution->getId())));
  }
}
